const express = require('express')
const axios = require('axios')
const app = express()
const midder1 = (async (req, res, next) => {
  console.log('server1')
  res.message = 'aaa',
  // await middler3()
  next()
  res.end(res.message)
})
const midder2 = ((req, res, next) => {
  console.log('server2')
  res.message += 'bbb'
  next()
})
const middler3 = (req, res, next) => {
  console.log('server3')
  axios.get('http://123.207.32.32.9001/lyric?id=167876').then(res => {
    res.message += res.data.lrc.lyric
    // res.end(res.message)
  })
  // res.message += 'ccc'
}
app.use(midder1, midder2, middler3)
app.listen(9032, () => {
  console.log('服务器启动成功~')
})